home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / moonstonemadness.swf / scripts / __Packages / TrailSmoke.as < prev   
Encoding:
Text File  |  2007-09-27  |  610 b   |  27 lines

  1. class TrailSmoke extends SideScroller.StaticObject
  2. {
  3.    var bObjectBlock;
  4.    var bObjectSpecial;
  5.    function TrailSmoke(__mcRef, __oLayer)
  6.    {
  7.       super(__mcRef,__oLayer);
  8.       this.bObjectBlock = false;
  9.       this.bObjectSpecial = false;
  10.       this.setState("Out");
  11.       this.ParentLayer.doAddListener(this);
  12.    }
  13.    function doDestroy()
  14.    {
  15.       this.ParentLayer.doRemoveListener(this);
  16.       super.doDestroy();
  17.    }
  18.    function doOut()
  19.    {
  20.       if(this.isStateComplete())
  21.       {
  22.          this.ParentLayer.doRemoveListener(this);
  23.          this.doDestroy();
  24.       }
  25.    }
  26. }
  27.